module.exports = function(api) {
  api.cache(true)

  const presets = ['@babel/preset-env', '@vue/babel-preset-jsx']
  const plugins = [
    '@babel/plugin-syntax-dynamic-import',
    '@babel/plugin-proposal-class-properties',
    [
      'import',
      {
        libraryName: 'view-design',
        libraryDirectory: 'src/components',
      },
    ],
  ]

  return {
    presets,
    plugins,
  }
}
